package com.bobo.web.provider.controller;

import com.bobo.web.api.domain.video.PictureDO;
import com.bobo.web.api.vo.PictureVO;
import com.bobo.web.api.vo.VideoVO;
import com.bobo.web.api.vo.base.ResponseResult;
import com.bobo.web.provider.client.dingding.DingDingWarnClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class IndexController {
    @Configuration
    public class htmlController  extends WebMvcConfigurerAdapter {
        @Override
        public void addViewControllers( ViewControllerRegistry registry ) {
            registry.addViewController( "/" ).setViewName( "forward:/index.html" );
            registry.setOrder( Ordered.HIGHEST_PRECEDENCE );
            super.addViewControllers( registry );
        }
    }
    /**
     * 获取图片列表3D
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "index", method = {RequestMethod.GET})
    public String resume(Model model) throws Exception {
        return "index";
    }
}
